package com.lovo.psc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@TableName("psc_vendorproduct")
public class VendorProductBean {
    @TableId(value = "pk_productId",type = IdType.AUTO)
    private long productId;
    @TableField("p_idNum")
    private String idNum = System.currentTimeMillis()+"";
    @TableField("p_productName")
    private String productName;
    @TableField("p_type")
    private String type;
    @TableField("p_num")
    private int num;
    @TableField("p_specs")
    private String specs;
    @TableField("p_brand")
    private String brand;
    @TableField("p_price")
    private float price;
    //0为存在，1为删除
    @TableField("p_status")
    private int status=0;
    @TableField("p_img")
    private String img;
    @TableField("fk_vendorId")
    private long vendorId;

    @Override
    public String toString() {
        return "VendorProductBean{" +
                "productId=" + productId +
                ", idNum='" + idNum + '\'' +
                ", productName='" + productName + '\'' +
                ", type='" + type + '\'' +
                ", num=" + num +
                ", specs='" + specs + '\'' +
                ", brand='" + brand + '\'' +
                ", price=" + price +
                ", status=" + status +
                ", img='" + img + '\'' +
                ", vendorId=" + vendorId +
                '}';
    }
}
